package com.study.oauth2demo.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Set;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class UserDto {

    public static final String SESSION_KEY = "SESSION_KEY1";

    private String name;

    private String password;

    private String sex;

    private Integer age;

    /**
     * 权限
     */
    Set<String> authorities;
}
